package main

import "fmt"

func main() {

	var stu Student
	stu.setName("Alice")
	fmt.Println(stu.Name)
}

type Student struct {
	Name string
}

func (stu *Student) setName(input string) {
	stu.Name = input
}
